package com.ticket.dao.impl;

import com.ticket.dao.SportsDao;
import com.ticket.entity.Contest;
import com.ticket.entity.Drama;
import com.ticket.util.Page;

import java.util.List;

/**
 * @author twj
 * @version 8.0
 * @description TODO
 * @date 2023/10/8
 */
public class SportsDaoImpl {
    public List<Contest> selSports(Page page, Contest contest) {
        return null;
    }
    //CommonDao dao = new CommonDao();
    /**
    * @author TanWenJie
    * @description TODO 分页查询体育赛事
    * @date 2023/10/8 8:54 
     * @param page
     * @param contest
    * @return org.t69.auction.Page<com.ticket.entity.Drama>
    */
//    @Override
//    public List<Contest> selSports(Page page, Contest contest) {
//        List<Contest> contestPage = new Page(page.getPageSize(), page.getCurrPageNo());
//        String countsql = "select count(1) from stage";
//        String datasql = "select contest_id as contestId,contest_name as contestName,contest_start_time as contestStartTime," +
//                "contest_finish_time as contestFinishTime,contest_address as contestAddress,price_start_range as priceStartRange,price_finish_range as priceFinishRange," +
//                "contest_status as contestStatus from contest";
//        try {
//           // contestPage = dao.exeQueryPage(Contest.class,page,countsql,datasql,contest);
//        } catch (Exception e) {
//            System.out.println("分页查询体育赛事异常");
//        }
//        return contestPage;
//    }
}
